package controller;

import java.util.ArrayList;

import entity.Student;
import service.impl.StudentServiceImpl;

public class StudentController {
	private StudentServiceImpl ssi = new StudentServiceImpl();
	
	public boolean save(Student t) {
		return ssi.save(t);
	}

	public boolean delete(Student t) {
		return ssi.delete(t);
	}

	public boolean update(Student t) {
		return ssi.update(t);
	}

	public Student selectById(int id) {
		return ssi.selectById(id);
	}

	public ArrayList<Student> selectAll() {
		return ssi.selectAll();
	}

	public ArrayList<Student> selectByName(String name) {
		return ssi.selcctByName(name);
	}

	public ArrayList<Student> selectByScore(int low, int high) {
		return ssi.selcctByScore(low, high);
	}

	public ArrayList<Student> selectByScoreDesc() {
		return ssi.selcctByScoreDesc();
	}

}
